?><?
function browser_detection( $which_test ) {
	$browser=get_browser(null, true);
  switch ( $which_test){
    case 'safe'			:return 1;
    case 'dom'			:return $browser['javascript'];
    case 'os'				:return $browser['platform'];
    case 'os_number':return 0;
    case 'number'		:return $browser['version'];
    case 'full'			:return $browser;
    case 'type'			:return $browser['crawler'];
		default					:return isset($browser[$which_test])?$browser[$which_test]:false;
  }
}